import { http } from '@/utils/http'

// 新房收藏信息分页
export const getCollectNewHouseAPI = (data: any) => {
  return http({
    method: 'GET',
    url: '/admin-api/house/favorite/sell-house-page',
    data,
  })
}
//二手房收藏信息分页
export const getCollectSecondHouseAPI = (data: any) => {
  return http({
    method: 'GET',
    url: '/admin-api/house/favorite/second-hand-house-page',
    data,
  })
}
//租房收藏信息分页
export const getCollectRentHouseAPI = (data: any) => {
  return http({
    method: 'GET',
    url: '/admin-api/house/favorite/rent-house-page',
    data,
  })
}
//创建收藏信息
export const createCollectAPI = (data: any)=>{
  return http({
    method: 'POST',
    url: '/admin-api/house/favorite/create',
    data,
  })
}
//删除收藏信息
export const deleteCollectAPI = (data: any)=>{
  return http({
    method: 'DELETE',
    url: '/admin-api/house/favorite/delete',
    data,
  })
}